﻿#paycheckmodal.hidden
  %table.orderinfo.data.left{width="100%"}
    %tr
      %th{colspan=3}
        .padded5 Принять деньги?
    %tr
      %td{width="65%"}
        %label.padded5.required{for="m_tax"}Госпошлина + ПИТР:
      %td{width="22%"}
        %input#m_tax.px50.number.modal{name="m_tax",value=entity.Tax,maxlength="10", onchange="m_calculateCost(this);", min="0"}
      %td{width="5%"}
        .padded5="Руб."
    %tr
      %td
        %label.padded5.required{for="m_copyprice"}Копии + ПИТР:
      %td              
        %input#m_copyprice.px50.number.modal{name="m_copyprice",value=entity.CopyPrice,maxlength="10", onchange="m_calculateCost(this);", min="0"}
      %td
        .padded5="Руб."
    %tr
      %td
        %label.padded5.required{for="m_docprice"}Ксерокс:
      %td          
        %input#m_docprice.px50.number.modal{name="m_docprice",value=entity.DocPrice,maxlength="10", onchange="m_calculateCost(this);", min="0"}
      %td
        .padded5="Руб."
    %tr
      %td
        .padded5.bold="Итого:"
      %td    
        %div#m_result.px50.padded3.bold{name="m_result",value=(create) ? 0 :(entity.DocPrice + entity.CopyPrice + entity.Tax),maxlength="10"}=(create) ? 0 :(entity.DocPrice + entity.CopyPrice + entity.Tax)
      %td
        .padded5.bold="Руб."
    %tr
      %td
        .field.padded5.floatleft
          %label.radio{for="m_iscashless"}
            =HTMLHelper.Checkbox("m_iscashless","True","modal",entity.IsCashless)
            ="Безнал"
        .field.padded5
          %label.radio{for="m_isprepayment"}
            =HTMLHelper.Checkbox("m_isprepayment","True","modal",entity.IsPrepayment)
            ="Аванс"
        .clear  
      %td
      %td
    -if (readOnly)
      %tr
        %td{colspan="2"}
          %table
            %tr
              %td
                .field.floatleft
                  %a#m_addformnumber.button{href="#",onclick="return addnotarialformnumber(true);"}
                    %img{src="img/addsmall.gif", title="Добавить бланк", alt="Добавить бланк"}
                  Номер бланка:
              %td
                .field
                  #m_formnumberholder
                    -foreach(var form in forms)
                      .field
                        %span.small.active=string.Format("77АА{0}",form.FullName)
                        %a.noul.nfinvalidlink{href="#",onclick=string.Format("return makeInvalid(this, {0}, true);",form.Id)}
                          %img{src="img/trash.gif",title="Недействителен"}
                      .clear
                    %select{multiple="true", class="hidden nolink", name="m_nformsdeleted", id="m_nformsdeleted"}
                    =HTMLHelper.HiddenInput("m_formnumberids","")   
        %td
      %tr.m_invalid_comment_holder.hidden
        %td{colspan="3"}
          ="Комментарий к испорченному бланку:"
        %td
        %td  
      %tr.m_invalid_comment_holder.hidden
        %td{colspan="3"}
          %div
            %textarea#m_forminvalidmessage.width100{name="m_forminvalidmessage", maxlength="1000"} 
        %td
        %td        
      %tr
        %td
          .field.padded5
            %label.radio{for="m_isnotonform"}
              =HTMLHelper.Checkbox("m_isnotonform","True","modal",(create) ? true : entity.IsNotOnForm)
              ="Не на бланке"
        %td
        %td 
  %button#accepPay.return{type="button"} Да
  %button#refusePay.return{type="button"} Нет